package com.fishery.processing.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fishery.processing.util.Unchangeable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
@ApiModel(value="ProcessingInput对象", description="加工厂投入品表")
@TableName(value = "t_processing_input")
public class Input implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "投入品编号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "投入品名称")
    @NotEmpty(message = "投入品名称不能为空")
    private String inputName;

    @ApiModelProperty(value = "生产日期")
    private Date inputProduceDate;

    @ApiModelProperty(value = "到期时间")
    private Date inputExpireDate;

    @ApiModelProperty(value = "检验人")
    @NotEmpty(message = "检验人不能为空")
    private String inspector;

    @ApiModelProperty(value = "供应商名称")
    @NotEmpty(message = "供应商名称不能为空")
    private String supplierName;

    @ApiModelProperty(value = "供应商地址")
    private String supplierAddr;

    @ApiModelProperty(value = "供应商电话")
    private String supplierPhone;

    @ApiModelProperty(value = "供应商生产许可证")
    private String supplierLicense;

    @ApiModelProperty(value = "投入品图片")
    private String inputPicture;

    @ApiModelProperty(value = "规格 /mm")
    private BigDecimal specification;

    @ApiModelProperty(value = "加工厂编号")
    @NotEmpty(message = "加工厂编号不能为空")
    @Unchangeable
    private String processingFactoryId;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @Unchangeable
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @Unchangeable
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getInputName() {
        return inputName;
    }

    public void setInputName(String inputName) {
        this.inputName = inputName;
    }

    public Date getInputProduceDate() {
        return inputProduceDate;
    }

    public void setInputProduceDate(Date inputProduceDate) {
        this.inputProduceDate = inputProduceDate;
    }

    public Date getInputExpireDate() {
        return inputExpireDate;
    }

    public void setInputExpireDate(Date inputExpireDate) {
        this.inputExpireDate = inputExpireDate;
    }

    public String getInspector() {
        return inspector;
    }

    public void setInspector(String inspector) {
        this.inspector = inspector;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierAddr() {
        return supplierAddr;
    }

    public void setSupplierAddr(String supplierAddr) {
        this.supplierAddr = supplierAddr;
    }

    public String getSupplierPhone() {
        return supplierPhone;
    }

    public void setSupplierPhone(String supplierPhone) {
        this.supplierPhone = supplierPhone;
    }

    public String getSupplierLicense() {
        return supplierLicense;
    }

    public void setSupplierLicense(String supplierLicense) {
        this.supplierLicense = supplierLicense;
    }

    public String getInputPicture() {
        return inputPicture;
    }

    public void setInputPicture(String inputPicture) {
        this.inputPicture = inputPicture;
    }

    public BigDecimal getSpecification() {
        return specification;
    }

    public void setSpecification(BigDecimal specification) {
        this.specification = specification;
    }

    public String getProcessingFactoryId() {
        return processingFactoryId;
    }

    public void setProcessingFactoryId(String processingFactoryId) {
        this.processingFactoryId = processingFactoryId;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "Input{" +
        "id=" + id +
        ", inputName=" + inputName +
        ", inputProduceDate=" + inputProduceDate +
        ", inputExpireDate=" + inputExpireDate +
        ", inspector=" + inspector +
        ", supplierName=" + supplierName +
        ", supplierAddr=" + supplierAddr +
        ", supplierPhone=" + supplierPhone +
        ", supplierLicense=" + supplierLicense +
        ", inputPicture=" + inputPicture +
        ", specification=" + specification +
        ", processingFactoryId=" + processingFactoryId +
        ", version=" + version +
        ", isDeleted=" + isDeleted +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
